package edu.nf.ch01.web.admin;

import edu.nf.ch01.common.BaseController;
import edu.nf.ch01.common.ResultVO;
import edu.nf.ch01.common.exception.LoginException;
import edu.nf.ch01.service.LoginService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangl
 * @date 2025/4/16
 */
@RestController
@RequiredArgsConstructor
public class LoginController extends BaseController {

    private final LoginService loginService;

    public ResultVO<Object> auth(String account, String password) {
        loginService.auth(account, password);
        return success();
    }
}